home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
PC World 2004 June
/
PCWorld_2004-06_cd.bin
/
software
/
vyzkuste
/
koolmoves
/
kmsetup.exe
/
{app}
/
Motion Scripts
/
Twirl One by One
/
effect2.txt
Wrap
Text File
|
2004-02-26
|
510b
|
28 lines
// main_init function
main_init = function(mc){
}
// main_effect function
main_effect = function(mc,frame){
if (subs_done) end_effect = true;
}
// sub_init function
sub_init = function(mc){
if (!out_effect) mc._xscale = mc._alpha = 0;
}
// sub_effect function
sub_effect = function(mc,frame){
perc = frame / lastsubframe;
if (out_effect) perc = 1 - perc;
mc._xscale = -100 * Math.sin(perc * deg270);
mc._alpha = perc * 100;
if (frame == lastsubframe) mc.done=true;
}